package math;

import java.util.Scanner;

public class a {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double x = sc.nextDouble();
        double a=Math.pow(x, x)-Math.pow(Math.sin(x), x);
        double b=Math.pow(x,2)*Math.log10(1+ x);
        System.out.println(a/b);
    }
}
